#! d:\Python27\python.exe
#alias python='winpty python.exe'
import os
import sys
##import re

P_NONE='\033[m'
P_RED='\033[0;32;31m'
P_GREEN='\033[0;32;32m'

if __name__=="__main__":
  inFile1 = sys.argv[1];
  inFile2 = sys.argv[2];
  fi1 = open(inFile1,"r");
  lstIn1 = fi1.readlines();
  fi1.close;

  fi2 = open(inFile2,"r");
  lstIn2 = fi2.readlines();
  fi2.close;

  cnt=0;
  lenTmp = len(lstIn1);
  if(lenTmp > len(lstIn2)):
    lenTmp = len(lstIn2);
  
  for i in range (0,lenTmp):
    if(lstIn2[i] != lstIn1[i]):
      cnt=cnt+1;

  if(cnt != 84):
    print (P_RED+"cnt="+str(cnt)+P_NONE);
    print (P_RED+"inFile1="+inFile1+P_NONE);
    print (P_RED+"inFile2="+inFile2+P_NONE);
    os.system("pause"); 
  else:
    print (P_GREEN+"inFile1="+inFile1+P_NONE);


    
